package com.homework05;

public class Triangle implements Ishape {

	private int length;

	private int width;

	public Triangle(int length, int width) {
		this.length = length;
		this.width = width;
	}

	@Override
	public int getPerimeter() {
		return (length + width) * 2;
	}

	@Override
	public int getArea() {
		return length * width;
	}
}